package com.shkco.sentinel;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.shkco.domain.User;
import org.springframework.web.bind.annotation.PathVariable;

public class OrderFallback {

    public static User orderFallback(@PathVariable("id") Long id, Throwable e){
        return new User(-1L,"熔断了！","当前服务不可以！请稍后重试！");
    }
}
